# Maintainer: Sven-Hendrik Haase <svenstaro@gmail.com>

pkgname=python-pasta
pkgver=0.2.0
pkgrel=7
pkgdesc='Library to refactor python code through AST manipulation'
url='https://github.com/google/pasta'
arch=('any')
license=('Apache')
depends=('python')
makedepends=('python-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/google/pasta/archive/v${pkgver}.tar.gz")
sha512sums=('8d5723df7f6b30e789aa5710b0e594102361f0ae1408a12529b469faf68b41b7c1273e6310f3ea07af353b0509e8ff8404dca715eb821626c289ab24f149f048')

build() {
  cd "$srcdir/pasta-$pkgver"

  python setup.py build
}

package() {
  cd "pasta-$pkgver"

  python setup.py install --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:
